﻿/*-----------------------------------
*用于定义列表的数据格式的方法
* 
*--------------------------------------*/
var formatUrl = function (elCell, oRecord, oColumn, sData) {
    elCell.innerHTML = "<a href='" + oRecord.getData("ClickUrl") + "' target='_blank'>" + sData + "</a>";
};

var formatRating = function (elCell, oRecord, oColumn, sData) {
    elCell.innerHTML = (sData === null) ? "N/A" : YAHOO.util.Number.format(sData);
};

//var formatDate = function (elCell, oRecord, oColumn, sData) {
//    //alert(sData);
//    elCell.innerHTML = (sData === null) ? "" : YAHOO.widget.DataTable.formatDate;
//};
